
AC_INIT(program, 0.1.0)

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

GLIB_REQUIRED=2.14

PKG_CHECK_MODULES(PROGRAM,			\
	glib-2.0 >= $GLIB_REQUIRED		\
	gio-unix-2.0 >= 2.16.1)		
AC_SUBST(PROGRAM_CFLAGS)
AC_SUBST(PROGRAM_LIBS)

AC_OUTPUT([
Makefile
src/Makefile
])

echo "

Configuration:

	CFLAGS:	${PROGRAM_CFLAGS}

	LIBS:	${PROGRAM_LIBS}

"

